<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/jquery-3.3.1.min.js"></script>
</head>

<body>
    <div class="yeye">
        <div class="father">
            <div class="son">儿子</div>
        </div>
    </div>

    <div class="nav">
        <p>我是屁</p>
        <div>
            <p> 我是p</p>
        </div>
    </div>
    <script>
        $(function() {
            console.log($(".son").parent());
            console.log($(".son").parent().parent());
            console.log($(".nav").children("p"));
            //选里面所有的孩子
            console.log($(".nav").find("p"));
        })
    </script>
</body>

</html>